+2007-07-09 Jaap Haitsma <jaap@haitsma.org>
+
+ * gtk/gtkstatusicon.c: Remove usage of deprecated GtkTooltips API. Use
+ gtk_widget_set_tooltip_text instead
+
2007-07-09 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtktooltip.c:
#include "gtkintl.h"
#include "gtkiconfactory.h"
#include "gtkmarshalers.h"
-#include "gtktooltips.h"
#include "gtktrayicon.h"
#include "gtkprivate.h"
#ifdef GDK_WINDOWING_X11
GtkWidget *tray_icon;
GtkWidget *image;
- GtkTooltips *tooltips;
#endif
#ifdef GDK_WINDOWING_WIN32
g_signal_connect_swapped (priv->image, "size-allocate",
G_CALLBACK (gtk_status_icon_size_allocate), status_icon);
- status_icon->priv->tooltips = gtk_tooltips_new ();
- g_object_ref_sink (priv->tooltips);
#endif
#ifdef GDK_WINDOWING_WIN32
priv->blank_icon = NULL;
#ifdef GDK_WINDOWING_X11
- if (priv->tooltips)
- g_object_unref (priv->tooltips);
- priv->tooltips = NULL;
-
gtk_widget_destroy (priv->tray_icon);
#endif
priv = status_icon->priv;
#ifdef GDK_WINDOWING_X11
- gtk_tooltips_set_tip (priv->tooltips, priv->tray_icon,
- tooltip_text, NULL);
+
+ gtk_widget_set_tooltip_text (priv->tray_icon, tooltip_text);
+
#endif
#ifdef GDK_WINDOWING_WIN32
if (tooltip_text == NULL)